var ioc={
	dataSource:{
		type:"org.apache.commons.dbcp.BasicDataSource",
		events:{depose:"close"},
		fields:{
			driverClassName:"com.mysql.jdbc.Driver",
			url:"jdbc:mysql://localhost:3306/eshop?useUnicode=true&characterEncoding=utf-8",
			username:"root",
			password:"root"
		}
	},
	dao:{
		type:"org.nutz.dao.impl.NutDao",
		args:[{refer:"dataSource"}]
	},
	tmpFilePool:{
		type:'org.nutz.filepool.NutFilePool',
		args:['E:/TomcatShare/temp',1000]
	},
	uploadFileContext:{
		type:'org.nutz.upload.UploadingContext',
		singleton:false,
		args:[{refer:'tmpFilePool'}],
		fields:{
			ignoreNull:true,
			maxFileSize:1048576,
			nameFilter:'^(.+[.])(gif|jpg|png)$'
		}
	},
	myUpload:{
		type:'org.nutz.mvc.upload.UploadAdaptor',
		singlon:false,
		args:[{refer:'uploadFileContext'}]
	}
}